package com.xxkj.drugtraceability.net

sealed class Result<out T : Any?> {
    data class Success<out T : Any?>(val data: T,var message:String?) : Result<T>()
    data class Error(val exception: Exception,var errorData:String? = null,var code:Int=0) : Result<Nothing>()
    object Login : Result<Nothing>()
}